package com.joysuch.wwyt.common.service;

import com.joysuch.wwyt.core.common.ajax.ResultBean;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author xsx
 * @version 1.0
 * @date 2023/3/16 9:51
 */
public interface CommonFaceService {

    /**
     * 人脸对比
     *
     * @param file
     * @param userId
     * @return
     * @throws IOException
     */
    Object compare(MultipartFile file, Long userId) throws IOException;

    /**
     * 人脸搜索
     *
     * @param file
     * @return
     */
    ResultBean search(MultipartFile file);
}
